Completed
Push — master ( ee7956...a1d8a9 )
by Sand
01:08
created

list-files - with page and results per page.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
nop 1
1
2
'use strict';
3
4
const Sandcage = require('..');
5
6
const sandcage = new Sandcage('[YOUR SANDCAGE API KEY]');
7
const payload = {
8
  page: 1,
9
  'results_per_page': 10
10
};
11
12
sandcage
13
  .listFiles(payload)
14
  .then((result) => {
15
    console.log(result);
16
  });